home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / wb / czesc_4 / vark15 / utils p-z / vmailto.lha / vmailto / Vmailto next >
AmigaDOS Script File  |  1996-05-04  |  892b  |  33 lines

  1. .KEY TOADDRESS/A
  2. .BRA {
  3. .KET }
  4. ; set the script bit (protect +s) and call this from V
  5. ; with {path}:send-mail %h 
  6. ; Generate To: and Subject: headers
  7. echo >T:V-Mailto.{$$} "To: {TOADDRESS}*NSubject: *N"
  8.  
  9. ; Replace UULIB:.SIG with the path to your signature file
  10.  
  11. type >>T:V-Mailto.{$$} UULIB:.SIG
  12.  
  13. ; Change all references to pubscreen=voyager to the name of your public
  14. ; screen on which Voyager is running.
  15.  
  16. ; Change the editor 'CED' if you want but make sure it doesn't auto detach
  17. ; from the calling process.
  18.  
  19. stack 10000
  20. CED -KEEPIO -pubscreen=Voyager T:V-Mailto.{$$}
  21.  
  22. requestchoice >env:send "Voyager Request" "Send the mail??" "YES" "NO" PUBSCREEN=Voyager
  23. if VAL $send EQ 0
  24.  requestchoice TITLE="" BODY="Message Cancelled" GADGETS="OK" PUBSCREEN=Voyager
  25. else
  26.  amitcp:bin/SENDMAIL <T:V-Mailto.{$$}
  27. endif
  28.  
  29. ; Clean up temporary files.
  30.  
  31. delete >NIL: T:V-Mailto.{$$}
  32. delete >nil: env:send